package cn.rkylin.oms.warehouseDocking.dao.qimen;

import cn.rkylin.core.IDataBaseFactory;
import cn.rkylin.oms.warehouseDocking.vo.qimen.OtherStockoutCreate;
import cn.rkylin.oms.warehouseDocking.vo.qimen.OtherStockoutSkuCreate;
import cn.rkylin.oms.warehouseDocking.vo.qimen.ShipOrderCreate;
import cn.rkylin.oms.warehouseDocking.vo.qimen.ShipOrderSkuCreate;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * 奇门发货单创建数据访问层具体实现
 * 
 * @author fengwang
 * @created 2017年10月17日
 */

@Repository(value = "iShipOrderCreateDAO")
public class ShipOrderCreateDAOImpl implements IShipOrderCreateDAO {

    @Autowired
    protected IDataBaseFactory dao;

    private static final String selectInfoShipOrderByPrjIdAndStorId = "selectInfoShipOrderByPrjIdAndStorId";

    private static final String selectInfoShipOrderSkuByStockoutId = "selectInfoShipOrderSkuByStockoutId";

    @Override
    public List<ShipOrderCreate> selectInfoShipOrderByPrjIdAndStorId(Map<String, Object> reqMap) throws Exception {
        List<ShipOrderCreate> rList = dao.findAllList(selectInfoShipOrderByPrjIdAndStorId, reqMap);
        return rList;
    }

    @Override
    public List<ShipOrderSkuCreate> selectInfoShipOrderSkuByStockoutId(Map<String, Object> reqMap) throws Exception {
        List<ShipOrderSkuCreate> rList = dao.findAllList(selectInfoShipOrderSkuByStockoutId, reqMap);
        return rList;
    }

}
